import request from '@/utils/request'

// 查询类目列表
export function getFormatbrandData(query) {
    return request({
        url: '/system/brand/list',
        method: 'get',
        params: query
    })
}


// 查询单休详细
export function getBrand(brandId) {
    return request({
        url: '/system/brand/' + brandId,
        method: 'get'
    })
}
// http://localhost:8081/brand/spec
// 新增单休
export function addBrand(data) {
    return request({
        url: '/system/brand',
        method: 'post',
        data: data
    })
}

// 修改单休
export function updateBrand(data) {
    return request({
        url: '/system/brand',
        method: 'put',
        data: data
    })
}

// 删除单休
export function delBrand(brandId) {
    return request({
        url: '/system/brand/' + brandId,
        method: 'delete'
    })
}